/*
 *  Parabora.h
 *  SoundController0002
 *
 *  Created by jiro on 10/07/01.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#pragma once

#include "Line.h"

namespace sc
{
	class Parabola : public Line
	{
	protected:

		double coefficientA;

		double coefficientB;

		double coefficientC;

	public:

		Parabola();

		Parabola( Type type, double startX, double startY, double endX, double endY );

		virtual ~Parabola();

		bool operator < ( const Parabola& rhs ) const;

		bool operator > ( const Parabola& rhs ) const;

		bool operator <= ( const Parabola& rhs ) const;

		bool operator >= ( const Parabola& rhs ) const;

		double GetY( double paramX ) const;

		std::string ToString() const;

	};
}